<?php 
/*
 module:		会员管理
 create_time:	2022-02-28 18:55:11
 author:		
 contact:		
*/

namespace app\api\service;
use app\api\model\Member;
use think\facade\Log;
use think\exception\ValidateException;
use xhadmin\CommonService;

class MemberService extends CommonService {


	/*
 	* @Description  创建数据
 	*/
	public static function getOpenid($data){
		try{
			$res = Member::create($data);
		}catch(ValidateException $e){
			throw new ValidateException ($e->getError());
		}catch(\Exception $e){
			abort(config('my.error_log_code'),$e->getMessage());
		}
		return $res->uid;
	}




}

